import { deleteByRoleIdAndPermissionsId, addRoleAssociatedPermissions } from '@/api/roleAssociatedPermissionsApi'

const roleAssociatedPermissionsBusiness = {
  actions: {
    DeleteByRoleIdAndPermissionsId ({ commit }, roleIdAndPermissionsId) {
      return deleteByRoleIdAndPermissionsId(roleIdAndPermissionsId).then((response) => {
        return response
      }).catch(() => {
      }).finally(() => {
      })
    },
    AddRoleAssociatedPermissions ({ commit }, roleIdAndPermissionsId) {
      return addRoleAssociatedPermissions(roleIdAndPermissionsId).then((response) => {
        return response
      }).catch(() => {
      }).finally(() => {
      })
    }
  }
}

export default roleAssociatedPermissionsBusiness
